package io.github.bigbird0101.youyishi.code.event;


import io.github.bigbird0101.youyishi.code.CodeContent;
import io.github.bigbird0101.youyishi.code.GenerateCodeParam;


import java.util.List;

/**
 * 生成代码成功
 * @author m15179835326@163.com
 * @date 2023-05-12 11:06
 */
public class GenerateSuccessEvent extends CodeEvent {
    private final GenerateCodeParam generateCodeParam;
    public GenerateSuccessEvent(List<CodeContent<?>> codeContents, GenerateCodeParam generateCodeParam) {
        super(codeContents);
        this.generateCodeParam=generateCodeParam;
    }
    @Override
    public List<CodeContent<?>> getSource() {
        return (List<CodeContent<?>>) super.getSource();
    }

    public GenerateCodeParam getGenerateCodeParam() {
        return generateCodeParam;
    }
}
